const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // userInfo: state => state.user.userInfo
  name: state => state.user.userInfo.username,
  staffPhoto: state => state.user.userInfo.staffPhoto,
  routes: state => state.permission.routes,
  roles: state => state.user.userInfo.roles
  // token: (state) => {
  //   return state.user.token
  // }
}
// 目的：是为了快捷访问
// this.$store.state.user.name
// this.$store.getters.name
export default getters
